<link rel="stylesheet" href="__CDN__/assets/addons/xilujob/css/style.css" type="text/css">
<link rel="stylesheet" href="__CDN__/assets/addons/xilujob/css/reset.css" type="text/css">
<link href="__CDN__/assets/addons/xilujob/css/scroll-select.css" rel="stylesheet" />
<div class="c_right_header">
    <div class="title active">企业信息</div>
</div>

<div class="c_right_list">
    <div class="train-publish company_info">
        <form id="page1" method="post" data-status="{$xilujobuser.enterprise_model ? $xilujobuser.enterprise_model.audit_status : ''}">

            <div class="t_input clearfix">
                <div class="t_title">选择身份：</div>
                <div class="t_select t_select_down ul-selector" data-query=".handler">
                    <input type="hidden" name="xilujobuser[group_id]"
                           value="{$xilujobuser.group_id|default=''}">
                    <input type="text" placeholder="请选择" class="handler" readonly="">
                    <ul class="t_select_menu options" style="display:none;">
<!--                        <li value="1" disabled="true">个人-求职找工作</li>-->
                        <li value="2">企业-直招招聘</li>
                    </ul>
                </div>
            </div>

            <div class="t_input clearfix">
                <div class="t_title">企业名称：</div>
                <div class="t_select"><input name="audit[company_name]" value="{$enterpriseinfo.company_name ?? ''}"
                                             data-rule="执照名称:required;" maxlength="20" type="text" placeholder="请输入">
                </div>
            </div>

            <div class="t_input clearfix">
                <div class="t_title">发布区域：</div>
                <div class="t_select t_select_down">
                    <input type="hidden" data-rule="required;" data-msg="请选择发布区域" name="job[province_id]" value="">
                    <input type="hidden" data-rule="required;" data-msg="请选择发布区域" name="job[city_id]" value="">
                    <input type="text" placeholder="请选择" class="handler" id="pick-area" readonly value="">
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">所属行业：</div>
                <div class="t_select t_select_down ul-selector" data-query=".handler">
                    <input type="hidden" name="basic[industry_category_id]"
                           value="{$enterpriseinfo.industry_category_id ?? ''}">
                    <input type="text" placeholder="请选择" class="handler" readonly="">
                    <ul class="t_select_menu options" style="display:none;">
                        {foreach $industry_categories as $c}
                        <li value="{$c.id|htmlentities}">{$c.name|htmlentities}</li>
                        {/foreach}
                    </ul>
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">公司性质：</div>
                <div class="t_select t_select_down ul-selector" data-query=".handler">
                    <input type="hidden" data-rule="required;" data-msg="请选择公司性质" name="basic[company_type_id]" value="{$enterpriseinfo.company_type_id?:''}">
                    <input type="text" placeholder="请选择" class="handler" readonly="">
                    <ul class="t_select_menu options" style="display:none;">
                        {foreach $company_types as $c}
                        <li value="{$c.id|htmlentities}">{$c.name|htmlentities}</li>
                        {/foreach}
                    </ul>
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">公司规模：</div>
                <div class="t_select t_select_down ul-selector" data-query=".handler">
                    <input type="hidden" data-rule="required;" data-msg="请选择公司规模" name="basic[company_scale_id]" value="{$enterpriseinfo.company_scale_id?:''}">
                    <input type="text" placeholder="请选择" readonly="" class="handler">
                    <ul class="t_select_menu options" style="display:none;">
                        {foreach $company_scales as $c}
                        <li value="{$c.id|htmlentities}">{$c.name|htmlentities}</li>
                        {/foreach}
                    </ul>
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">联系人：</div>
                <div class="t_select"><input data-rule="required;" data-msg="请输入联系人" maxlength="10" name="basic[contact_person]" value="{$enterpriseinfo.contact_person ?? ''}"
                                             type="text" placeholder="请输入"></div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">联系电话：</div>
                <div class="t_select"><input data-rule="required;mobile;" maxlength="11" data-msg="请输入正确的手机号" name="basic[contact_phone]"
                                             value="{$enterpriseinfo.contact_phone ?? ''}" type="text" placeholder="请输入">
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">联系邮箱：</div>
                <div class="t_select"><input name="basic[contact_email]" maxlength="40" data-rule="email;" data-msg="请输入正确的邮箱"
                                             value="{$enterpriseinfo.contact_email ?? ''}" type="text" placeholder="请输入">
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">公司地址：</div>
                <div class="t_select"><input name="basic[address]" data-rule="required;" data-msg="请输入公司地址" maxlength="40"
                                             value="{$enterpriseinfo.address|default=''|htmlentities}" type="text"
                                             placeholder="请输入"></div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">资质上传：</div>
                <div class="t_selectm clearfix">
                    <div class="data">
                        <input type="hidden" data-rule="required;" data-msg="请上传Logo" name="basic[logo]" value="{$enterpriseinfo.logo|default=''|htmlentities}"/>
                        <img style="z-index:auto;{if !isset($enterpriseinfo) || !isset($enterpriseinfo.logo)}display:none; {/if}" src="{$enterpriseinfo.logo|default=''|cdnurl|htmlentities}" alt="" >
                        <!--上传后图片路径 一开始隐藏-->
                        <a id="upload-logo" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                           data-maxsize="2M" href="javascript:;">
                            {if !isset($enterpriseinfo.logo)}
                            <i class="Yicon i1"></i>
                            <p>上传公司LOGO</p>
                            {/if}
                        </a>
                    </div>
                    <div class="data">
                        <input type="hidden" name="audit[license_img]" data-rule="required;" data-msg="请上传企业营业执照"
                               value="{$enterpriseinfo.license_img|default=''}"/>
                        <img style="z-index:auto; {if !isset($enterpriseinfo) || !isset($enterpriseinfo.license_img)}display:none; {/if}" src="{$enterpriseinfo.license_img|default=''|cdnurl|htmlentities}" alt="" >
                        <!--上传后图片路径 一开始隐藏-->
                        <a id="upload-license" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp"
                           data-maxsize="5M" href="javascript:;">
                            {if !isset($enterpriseinfo.license_img)}
                            <i class="Yicon i1"></i>
                            <p>上传企业营业执照</p>
                            {/if}
                        </a>
                    </div>
                </div>
            </div>
            <div style="text-align: center;margin-top:50px;">
                <button style="display: inline-block;padding: 0;" id="btn-next" class="btn">继续完善</button>
                <button style="display: inline-block;padding: 0;" class="btn" id="btn-submit1">提交</button>
            </div>
        </form>

        <form method="post" id="page2" style="display: none;">
<!--                        <div class="t_input clearfix">-->
<!--                            <div class="t_title">企业名称：</div>-->
<!--                            <div class="t_select"><input name="basic[full_name]" value="{$enterpriseinfo.full_name|default=''|htmlentities}" maxlength="20" type="text" placeholder="请输入"></div>-->
<!--                        </div>-->
            <div class="t_input clearfix">
                <div class="t_title">展示标签：</div>
                <div class="t_selectw clearfix" id="tags">
                    {foreach $benefits as $benefit}
                    <div class="tag {:in_array($benefit.id,$benefit_ids_arr)?'active':''}"><input type="checkbox" style="display: none;" {:in_array($benefit.id,$benefit_ids_arr)?'checked':''} name="basic[benefit_ids][]" value="{$benefit.id|htmlentities}"> {$benefit.name|htmlentities}
                    </div>
                    {/foreach}
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">公司简介：</div>
                <div class="t_selecta"><textarea name="basic[intro]" placeholder="输入公司描述内容...（控制在200字内）">{$enterpriseinfo.intro|default=""|htmlentities}</textarea>
                </div>
            </div>
            <div class="t_input clearfix">
                <div class="t_title">环境照片：</div>
                <div class="t_selectb clearfix" id="images">
                    {notempty name="enterpriseinfo.environment_images"}
                    {foreach $enterpriseinfo.environment_images as $image}
                    <div class="img_box">
                        <input type="hidden" name="basic[environment_images][]" value="{$image|htmlentities}"/>
                        <img src="{$image|cdnurl|htmlentities}" alt="">
                        <i class="Yicon icon_close"></i>
                    </div>
                    {/foreach}
                    {/notempty}
                    <div class="img_box upload">
                        <a href="javascript:;" id="btn-upload"
                           data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-maxsize="2M">
                            <i class="Yicon i1"></i>
                        </a>
                    </div>
                </div>
                <div style="font-size: 11px;color:#888;clear:both;margin-left:90px;">首张照片将作为企业主页或店铺主页背景<br>建议至少上传3—6张照片</div>
            </div>


            <div style="text-align: center;margin-top:50px;">
                <button style="display: inline-block;padding: 0;" id="btn-prev" type="button" class="btn">上一步</button>
                <button style="display: inline-block;padding: 0;" class="btn" id="btn-submit2">提交</button>
            </div>

        </form>

    </div>

</div>